<!DOCTYPE html>   
<!--
==========================================================================
gin-sns自动生成新增页面代码,只生成一次,按需修改.
date：2021-02-21 13:45:53 +0800 CST
path: template/module/collectarticle/add.html
author：jon
==========================================================================
-->
<html lang="zh">
<head>
    {{template "header" (OssUrl)}}
    <link href="{{OssUrl}}/resource/ajax/libs/datapicker/bootstrap-datetimepicker.min.css" rel="stylesheet"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-collectarticle-add">     
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">用户id：</label>
                    <div class="col-sm-8">
                        <input name="userId" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">规则id：</label>
                    <div class="col-sm-8">
                        <input name="ruleId" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">链接id：</label>
                    <div class="col-sm-8">
                        <input name="linkId" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">名称：</label>
                    <div class="col-sm-8">
                        <input name="title" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">总揽：</label>
                    <div class="col-sm-8">
                        <textarea name="summary" class="form-control" ></textarea>
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">内容：</label>
                    <div class="col-sm-8">
                        <textarea name="content" class="form-control" ></textarea>
                    </div>
                </div>
               
              
                <div class="form-group">
                    <label class="col-sm-3 control-label">内容类型：</label>
                    <div class="col-sm-8">
                        <select name="contentType" class="form-control m-b" >
                            <option value="">所有</option>
                        </select>
                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                    </div>
                </div> 
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">源地址：</label>
                    <div class="col-sm-8">
                        <textarea name="sourceUrl" class="form-control" ></textarea>
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">源id：</label>
                    <div class="col-sm-8">
                        <input name="sourceId" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">源地址MD5：</label>
                    <div class="col-sm-8">
                        <input name="sourceUrlMd5" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">源名称MD5：</label>
                    <div class="col-sm-8">
                        <input name="sourceTitleMd5" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-3 control-label">文章id：</label>
                    <div class="col-sm-8">
                        <input name="articleId" class="form-control" type="text" >
                    </div>
                </div>
               
              
                <div class="form-group">
                    <label class="col-sm-3 control-label">0未审核 1正常状态 2审核未通过 3删除：</label>
                    <div class="col-sm-8">
                        <div class="radio-box">
                            <input type="radio" name="status" value="" required>
                            <label for="status" text="未知"></label>
                        </div>
                        <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                    </div>
                </div>  
                
    </form>
</div>
{{template "footer" (OssUrl)}}
<script src="{{OssUrl}}/resource/ajax/libs/datapicker/bootstrap-datetimepicker.min.js"></script>

<script type="text/javascript">
    var prefix = ctx + "module/collectarticle";
    $("#form-collectarticle-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-collectarticle-add').serialize());
        }
    }
                                  
    
</script>
</body>
</html>